package edu.sctu.zhuyingzhi.month201506.day20150625.simpleCase;

/**
 * Created by user13 on 2015/6/25.
 */
public class Main {
    public static void main(String[] args) {

        Lazy lazy = Lazy.getLazyObj();
        Lazy lazy1 = Lazy.getLazyObj();


        if (lazy == lazy1){
            System.out.println("同一个");
        }
        else {
            System.out.println("不同");
        }

        Hungry hungry = Hungry.getHungryObj();
        Hungry hungry1 = Hungry.getHungryObj();

        if (hungry == hungry1) {
            System.out.println("同一个");
        }
        else{
            System.out.println("不同");
        }

    }
}
